<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAboutUsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('about_us', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->bigInteger('enterprise_id') ->default(0) ->comment('企业id');
            $table->string('contact')           ->default('')->comment('联系方式');
            $table->string('address')           ->default('')->comment('地址');
            $table->mediumText('detail')                ->comment('富文本');
            $table->string('type')   ->comment('about_us,user_agreement');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('about_us');
    }
}
